package com.test.qpbgboot.user.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.util.Date;
import java.util.List;

@Data
public class UserSaveParam {
    @ApiModelProperty(value = "用户id", required = true)
    private Long id;
    @ApiModelProperty(value = "用户名", required = true)
    @NotBlank(message = "用户名不能为空")
    private String username;
    @ApiModelProperty(value = "用户头像")
    private String imgUrl;
    @ApiModelProperty(value = "性别 1男 0女", required = true)
    @NotBlank(message = "性别不能为空")
    private String gender;
    @ApiModelProperty(value = "邮箱")
    @Pattern(regexp = "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$", message = "邮箱格式不正确")
    private String email;
    @ApiModelProperty(value = "出生日期")
    private Date birthday;
    @ApiModelProperty(value = "用户身高")
    private Double height;
    @ApiModelProperty(value = "用户体重")
    private Double weight;
    @ApiModelProperty(value = "用户标签列表")
    private List<Long> tagIdList;
    @ApiModelProperty(value = "个性签名")
    private String signature;
}
